<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui">

	<p:dialog id="loaiKhachHangDialogId" header="Chi tiết loại khách hàng" widgetVar="loaiKhachHangDialog"
		showEffect="fade" hideEffect="fade" resizable="false" modal="true" appendToBody="true" maximizable="true">
		<h:form id="loaiKhachHangDetailFormId">
			<h:panelGrid id="loaiKhachHangPanelGridId" columns="2" cellpadding="4">

				<f:facet name="header">
					<p:messages autoUpdate="true" />
				</f:facet>

				<h:outputText value="Tên:" />
				<p:inputText value="#{loaiKhachHangView.editedEntity.name}" style="font-weight:bold" />
				<h:outputText value="Thông tin:" />
				<p:inputText value="#{loaiKhachHangView.editedEntity.thongTin}" style="font-weight:bold" />
				<h:outputText value="Tổng giá trị đơn hàng:" title="Giá trị bán hàng tối thiểu cần đạt được"/>
				<p:inputText value="#{loaiKhachHangView.editedEntity.tongGiaTriDonHang}" style="font-weight:bold" />
				<h:outputText value="Số lượng đơn hàng:" title="Số lượng đơn hàng tối thiểu cần đạt được"/>
				<p:inputText value="#{loaiKhachHangView.editedEntity.soLuongDonHang}" style="font-weight:bold" />

				<f:facet name="footer">
					<p:commandButton icon="ui-icon-disk" value="Save" action="#{loaiKhachHangView.saveOrUpdate}" process="@form"
						update=":loaiKhachHangListFormId:loaiKhachHangDataTableId, @form"
						oncomplete="if (!args.validationFailed) loaiKhachHangDialog.hide()">
					</p:commandButton>
					<p:commandButton icon="ui-icon-cancel" value="Cancel" immediate="true" onclick="loaiKhachHangDialog.hide()" />
				</f:facet>
			</h:panelGrid>
		</h:form>
	</p:dialog>

</ui:composition>